cmake_minimum_required(VERSION 3.6)
project(tcp_echo_server)

set(CMAKE_CXX_STANDARD 11)

set(SOURCE_FILES main.cpp tcp_echo_connetion.cpp tcp_echo_connetion.h tcp_echo_server.cpp tcp_echo_server.h)
add_executable(tcp_echo_server ${SOURCE_FILES})


include_directories($ENV{BOOST_INCLUDE_PATH})

target_link_libraries(tcp_echo_server
        $ENV{BOOST_LIBS_PATH}/libboost_atomic.a
        $ENV{BOOST_LIBS_PATH}/libboost_date_time.a
        $ENV{BOOST_LIBS_PATH}/libboost_system.a
        $ENV{BOOST_LIBS_PATH}/libboost_chrono.a
        $ENV{BOOST_LIBS_PATH}/libboost_regex.a
        $ENV{BOOST_LIBS_PATH}/libboost_thread.a)